package com.ai.aicodeinghelper.simple;

import com.alibaba.cloud.ai.dashscope.chat.DashScopeChatModel;
import org.junit.jupiter.api.Test;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class Chat {
//    // 如果你引入了多个model依赖，不要直接注入 builder，因为此时ioc中有好多个model，他不知道使用那个
//    @Autowired
//    private ChatClient.Builder builder;

    @Autowired
    private DashScopeChatModel model;

    @Test
    public void simpleChat(){
        System.out.println(model);
    }
}
